import request from '@/utils/request'

// 查询用户借阅记录列表
export function listDUserBorrowed(query) {
  return request({
    url: '/system/DUserBorrowed/list',
    method: 'get',
    params: query
  })
}

// 查询用户借阅记录详细
export function getDUserBorrowed(id) {
  return request({
    url: '/system/DUserBorrowed/' + id,
    method: 'get'
  })
}

// 新增用户借阅记录
export function addDUserBorrowed(data) {
  return request({
    url: '/system/DUserBorrowed',
    method: 'post',
    data: data
  })
}

// 修改用户借阅记录
export function updateDUserBorrowed(data) {
  return request({
    url: '/system/DUserBorrowed',
    method: 'put',
    data: data
  })
}

// 删除用户借阅记录
export function delDUserBorrowed(id) {
  return request({
    url: '/system/DUserBorrowed/' + id,
    method: 'delete'
  })
}
